aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund/[id]/withdraw/+server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-09 16:03:29 -0800
committerAdam Soltys <[email protected]>2023-11-11 00:04:22 -0800
commitd5a44c19ceeda9927a0ad6eb02bef4ed08128f0a (patch)
treea05a4a698c8ae4474b5ca1b75d6dd3703b21fbeb /src/routes/(app)/fund/[id]/withdraw/+server.js
parent39d466f57098d9a6c3935739eabeacf1de370a25 (diff)
downloadcoinos-ui-d5a44c19ceeda9927a0ad6eb02bef4ed08128f0a.tar.gz
coinos-ui-d5a44c19ceeda9927a0ad6eb02bef4ed08128f0a.zip
rename fund name to id
Diffstat (limited to 'src/routes/(app)/fund/[id]/withdraw/+server.js')
-rw-r--r--src/routes/(app)/fund/[id]/withdraw/+server.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/fund/[id]/withdraw/+server.js b/src/routes/(app)/fund/[id]/withdraw/+server.js
new file mode 100644
index 00000000..0f9a23f3
--- /dev/null
+++ b/src/routes/(app)/fund/[id]/withdraw/+server.js
@@ -0,0 +1,6 @@
+import { json } from '@sveltejs/kit';
+import { auth, post } from '$lib/utils';
+
+export async function POST({ cookies, request }) {
+ return json(await post('/take', await request.json(), auth(cookies)));
+}